import { ref } from 'vue'

export function useForm() {
    const state = {
        isGiftCoupon: 0,
        isGiftPoints: 0,
        isGrowth: 0,
        isRegister: 0,
        isTotalPrice: 0,
        levelCoupon: '',
        levelGrowth: 0,
        levelIcon: '',
        levelImg: '',
        levelInfo: '',
        levelName: '',
        levelNo: '',
        levelPoints: 0,
        rights: [],
        status: 0,
        totalPrice: 0,
    }
    const form = ref<any>({
        ...state,
    })
    return { form, state }
}
